package 设计模式.创建模式._2建造者模式;
//concreteBuilder 零件
public class ManBuilder implements PersonBuilder
{

	Person person;
	public ManBuilder() {
		person = new Man();
	}
	
	
	@Override
	public ManBuilder bulidHead() {
		System.out.println("建造男人的头");
		return this;
	}

	@Override
	public ManBuilder bulidBody() {
		System.out.println("建造男人的身体");
		return this;
	}

	@Override
	public ManBuilder bulidFoot() {
		System.out.println("建造男人的脚");
		return this;
	}

	@Override
	public Person buildPerson() {
		return new Man();
	}

}
